﻿@using ChampionsLeagueBets.Domain
@using MvcContrib
@using MvcContrib.UI.Grid
@model IList<UnitOfAccount>

@Html.Grid(Model).RowAttributes(data => new Hash(@class => data.IsAlternate ? "row-normal" : "row-grayed")).Columns(column =>
		{
			column.For(cust => cust.Id);
			column.For(cust => cust.Name);
			column.For(cust => cust.ShortName);
			column.For(cust => Html.ActionLink<UnitOfAccountsController>(c => c.Edit(cust.Id), "Edytuj")).Named("Edycja");
			column.For(cust => Html.ActionLink<UnitOfAccountsController>(c => c.Delete(cust.Id), "Usuń", new { @class = "deleteLink" })).Named("Usuwanie");
		}
		).Empty("Brak jednostek rozliczeniowych")